import { service } from '../axios'


//用户登陆
export function login(u, p) {
    var data = new FormData();
    data.append('userName', u);
    data.append('password', p);
    return service.post("login", data)
}

// 获取用户信息，查询
export function getUserInfo(userName) {
    var data = new FormData();
    data.append('userName', userName);
    return service.post("userInfo", data)
}